package com.wxq.day0420.dao;

import com.wxq.day0420.exception.MyException;
import org.springframework.stereotype.Repository;

import java.sql.SQLException;

/**
 * @Author wxq
 * @Date 2021/4/20
 **/

@Repository
public class TestException {

    public void daodb() throws SQLException {
        throw new SQLException("Dao中数据库异常");
    }

    public void daomy() throws MyException {
        throw new MyException("Dao中自定义异常");
    }

    public void daono() throws Exception {
        throw new Exception("Dao中未知异常");
    }


}
